package com.gui.mianshiya.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gui.mianshiya.model.dto.mockinterview.MockInterviewAddRequest;
import com.gui.mianshiya.model.dto.mockinterview.MockInterviewEventRequest;
import com.gui.mianshiya.model.dto.mockinterview.MockInterviewQueryRequest;
import com.gui.mianshiya.model.entity.MockInterview;
import com.gui.mianshiya.model.entity.User;

/**
 * 模拟面试服务接口
 */
public interface MockInterviewService extends IService<MockInterview> {

    /**
     * 创建模拟面试
     * @param request
     * @param loginUser
     * @return
     */
    Long createMockInterview(MockInterviewAddRequest request, User loginUser);

    /**
     * 构造查询条件
     *
     * @param mockInterviewQueryRequest
     * @return
     */
    QueryWrapper<MockInterview> getQueryWrapper(MockInterviewQueryRequest mockInterviewQueryRequest);


    String handleMockInterviewEvent(MockInterviewEventRequest mockInterviewEventRequest, User loginUser);
} 